package com.hzw.saas.common.security.pojo.param;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 登录参数
 *
 * @author zzl
 * @since 01/03/2021
 */
@Data
@ApiModel("用户登录")
public class LoginParam {

    @NotBlank(message = "用户名不可为空")
    @ApiModelProperty(value = "用户名/邮箱/手机号", position = 1, required = true)
    private String username;

    @NotBlank(message = "密码不可为空")
    @ApiModelProperty(value = "密码", position = 2, required = true)
    private String password;

}
